5 Concluding Remarks 4 a Semantics for Oodb 4.1 Schemas and Databases 4.2 Inheritance State $ Term $ Proposition Transition $ Rewriting $ Deduction 3.4 Initial Model Semantics
نویسنده
چکیده
platform for database languages (or why predicate calculus is not enough). 10 the level of classes (more generally sorts) and the level of modules was already clearly made in the FOOPS language (besides the original paper 17], see also 21] for a very good discussion of inheritance issues and of the class-module distinction in the context of FOOPS), and indeed goes back to the distinction between sorts and modules in OBJ 20]. In MaudeLog, code in modules can be modiied or adapted for new purposes by means of a variety of module operations|and combinations of several such operations in module expressions|whose overall eeect is to provide a very exible style of software reuse that can be summarized under the name of module inheritance. Module operations of this kind include: 1. importing a module in a protecting, extending, or using mode 2. adding new equations or rules to an imported module 3. renaming some of the sorts or operations of a module 4. instantiating a parameterized module 5. adding modules to form their union 6. redeening a function so that its sort and syntax requirements are kept intact, but its semantics can be changed by discarding previously given equations or rules involving the function so that new equations or rules can then be given in their place 7. removing a sort or function altogether along with the equations or rules that depend on it so that it can be either discarded or replaced by another sort or function with diierent syntax and semantics. Operations 1{5 are exactly as in OBJ3 20]. Operations 6{7 are new and give a simple solution to the thorny problem of message specialization without complicating the class inheritance relation, which remains based on the order-sorted semantics. The need for message specialization, that is, for providing a diierent behavior for a message, arises frequently in practice. For example, a bank may at some point want to introduce a new kind of checking account in which there is a charge of 50 cents for each cashed check. The updating of an account's balance upon receipt of a message of type (chk A # K amt M) has to be modiied by the extra 50 cents charge. The problem is that if the new class of checking accounts with checking charges is deened as a subclass of the old, then the nice property supported by class inheritance of inheriting the …
منابع مشابه
60-510 Literature Review and Survey
...................................................................................................... 2 ACKNOWLEDGEMENT ................................................................................. 3 CONTENT ......................................................................................................... 4 1. INTRODUCTION ..............................................................
متن کاملFunctional Programming Formalisms for OODB Methods
Two well-studied functional formalisms in the theory of programming languages are (1) applicative program schemas and (2) typed lambda calculi. We relate these programming formalisms to object-oriented databases (OODBs) and in particular to the description of methods. The language of method schemas (MS) is a programming formalism based on applicative program schemas with additional key object-o...
متن کاملA Notation for Describing Aggregate Relationships in an Object-Oriented Data Model
The emphasis in object-oriented databases (OODBs) is on the inheritance, or "is a," type of relationship; yet, many relationships within databases are of the aggregate type—e.g., "is a part of" and "is associated with." While the semantics of the inheritance relationship is directly supported by OODB systems, the semantics of aggregate relationships must often be implemented again and again by ...
متن کاملContextualization of OODB Schemas in CROME
View mechanisms, widely used in the relational databases, pose new questions in the object model which captures much more semantics. In this paper, we will focus on inheritance and inter-objects relationships, two main semantic aspects of the object model. Like in the relational model, most of the current works about object-oriented views assume a fine granularity of the views. View classes are...
متن کاملThe rewriting calculus as a semantics to strategy application. Application to ELAN
Objects like rewrite rules and strategies are of very general use and interest in computer science. They are especially useful when modeling inference based systems like logical frameworks, theorem provers, constraint solvers, expert systems, transition systems. In order to formalize the concept of rule application, we have designed a calculus of explicit rule application called the rewritingor...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1993